package com.bigknow.appstore.web.framework.vo;

import java.util.List;

/**
 * Created by Administrator on 2015/2/25.
 */
public class Page<T> implements IVo{

    private int pageIndex;

    private int pageSize;

    private long pagesNum;

    private long totalNum;

    private long startRow;

    private long endRow;

    private String orderBy;

    private String fuzzyField;

    private List<T> entities;

    public List<T> getEntities() {
        return entities;
    }

    public void setEntities(List<T> entities) {
        this.entities = entities;
//        com.github.pagehelper.Page page = ((com.github.pagehelper.Page) entities);
//        this.setPageIndex(page.getPageIndex());
//        this.setPagesNum(page.getPagesNum());
//        this.setStartRow(page.getStartRow());
//        this.setEndRow(page.getEndRow());
//        this.setTotalNum(page.getTotalNum());
    }

    public String getFuzzyField() {
        return fuzzyField;
    }

    public void setFuzzyField(String fuzzyField) {
        this.fuzzyField = fuzzyField;
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public long getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(long totalNum) {
        this.totalNum = totalNum;
    }

    public long getStartRow() {
        return startRow;
    }

    public void setStartRow(long startRow) {
        this.startRow = startRow;
    }

    public long getEndRow() {
        return endRow;
    }

    public void setEndRow(long endRow) {
        this.endRow = endRow;
    }

    public long getPagesNum() {
        return pagesNum;
    }

    public void setPagesNum(long pagesNum) {
        this.pagesNum = pagesNum;
    }

    public String getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }
}
